package gui;

import common.IGrid;

public class Presentation {
  private EarthPanel pnlEarth;
  private DateTimePanel pnlDateTime;
  
  public Presentation(EarthPanel pnlEarth, DateTimePanel pnlDateTime) {
    this.pnlEarth = pnlEarth;
    this.pnlDateTime = pnlDateTime;
  }
  
  public void updateCellTemperatures(IGrid grid) {
    pnlEarth.updateGrid(grid);    
  }
  
  public void moveSunPosition(float degrees) {
    pnlEarth.moveSunPosition(degrees);
  }
  
  public void updateTimeDisplay(int milliSecs) {
    pnlDateTime.increment(milliSecs);
  }
  
  public void reset() {
    pnlEarth.reset();
  }

}
